using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;

namespace Library.WebControls.AdvHiddenField
{
	public class AdvHiddenFieldDesign : System.Web.UI.Design.ControlDesigner
	{
		public override string GetDesignTimeHtml()
		{
			// Component is the control instance, defined in the base
			// designer
			AdvHiddenField ctl = (AdvHiddenField)Component;
			StringWriter sw = new StringWriter();
			HtmlTextWriter tw = new HtmlTextWriter(sw);
			TextBox textBox = new TextBox();
			textBox.Visible = ctl.Visible;
			textBox.Enabled = false;
			textBox.ReadOnly = true;
			textBox.BackColor = Color.Gray;
			textBox.Text = "Advance hidden field";
			textBox.RenderControl(tw);
			return sw.ToString();
		}
	}
}
